package example.com.zcq.mymj.net;


import java.util.Map;

import example.com.zcq.mymj.bean.CaiYiCai;
import example.com.zcq.mymj.bean.ChengYu;
import example.com.zcq.mymj.bean.JiaoZhao;
import example.com.zcq.mymj.bean.KaiGuan;
import example.com.zcq.mymj.bean.LishiJinRi;
import example.com.zcq.mymj.bean.Toutiao;
import example.com.zcq.mymj.bean.ZiDian;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;

public interface HttpInterface {

    @FormUrlEncoded
    @POST("mbuser/loginNew.json")
    Call<ResponseBody> login(@FieldMap Map<String, String> formMap);

    /**
     * 聚合头条新闻
     * @param params
     * @return
     */
    @FormUrlEncoded
    @POST("toutiao/index")
    Call<Toutiao> toutiao(@FieldMap Map<String, String> params);

    /**
     * 新华字典
     * @param params
     * @return
     */
    @FormUrlEncoded
    @POST("xhzd/query")
    Call<ZiDian> zidian(@FieldMap Map<String, String> params);

    /**
     * 成语
     * @param params
     * @return
     */
    @FormUrlEncoded
    @POST("chengyu/query")
    Call<ChengYu> chengyu(@FieldMap Map<String, String> params);

    /**
     * 手机应用开关接口
     * @param
     * @return
     */
    @FormUrlEncoded
    @POST("http://www.1998002.com:8080/api/appinfo/getappinfo")
    Call<KaiGuan> webkaiguan(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST("151-4")
    Call<CaiYiCai> caiyicai(@FieldMap Map<String, String> formMap);

    /**
     * 历史今日
     * @param params
     * @return
     */
    @FormUrlEncoded
    @POST("http://api.juheapi.com/japi/toh")
    Call<LishiJinRi> lishijinri(@FieldMap Map<String, String> params);

    @FormUrlEncoded
    @POST("jztk/query")
    Call<JiaoZhao> jiaokaotiku(@FieldMap Map<String, String> formMap);

    /**
     * 股权申购重新提交
     *
     * @param params
     * @return
     */
    @Multipart
    @POST("rightsapply/modify.json")
    Call<ResponseBody> uploadGqsgAgain(@PartMap Map<String, RequestBody> params);

    /**
     * 股权申购记录
     *
     * @return
     */
    //    @FormUrlEncoded
    //    @POST("userrightsapply/allInfo.json")
    //    Call<GqsgRecordBean> gqsgRecord(@FieldMap Map<String, String> formMap);


}
